package ${packageName}.mvp.model.api;

import ${packageName}.BuildConfig;
import ${packageName}.app.AppConstants;

import com.jpxx.base.Config;
import com.jpxx.base.util.StringUtils;

/**
 * APP server域名动态替换工具
 */
public class ApiURLPath {
    /**
     * 根据环境获取不同的服务器地址
     */
    public static String getCustomApiBaseUrl(){
        if (StringUtils.isEmpty(Config.getString(AppConstants.CONFIG_CUSTOMIZE_API))) {
            return BuildConfig.API_BASE_URL;
        } else {
            return Config.getString(AppConstants.CONFIG_CUSTOMIZE_API);
        }
    }

}
